package com.xwdeshj.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

@Entity(name = "xw_pick_scenic")
public class XwPickScenic {
    /**
     * 挑选景区id
     */
    @Column(name = "pick_sce_id")
    private Integer pickSceId;

    /**
     * 景区加密id
     */
    @Column(name = "sce_encryptId")
    private String sceEncryptid;

    /**
     * 用户加密id
     */
    @Column(name = "user_encryptId")
    private String userEncryptid;

    /**
     * 景区类型（游山、玩水……）只能是一个类型
     */
    @Column(name = "pick_sce_type")
    private String pickSceType;

    /**
     * 景区类型加密id（可多个id，以，逗号进行分隔）
     */
    @Column(name = "secType_encryptId")
    private String sectypeEncryptid;

    /**
     *  企业名称
     */
    @Column(name = "pick_sce_companyName")
    private String pickSceCompanyname;

    /**
     * 所属城市
     */
    @Column(name = "pick_sce_city")
    private String pickSceCity;

    /**
     * 详细地址（住所）
     */
    @Column(name = "pick_sce_address")
    private String pickSceAddress;

    /**
     * 景区等级(A，2A)
     */
    @Column(name = "pick_sce_grade")
    private String pickSceGrade;

    /**
     * 定制时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "pick_sce_time")
    private Date pickSceTime;

    /**
     * 商铺宣传图
     */
    @Column(name = "pick_sce_photo")
    private String pickScePhoto;

    /**
     * 商铺介绍
     */
    @Column(name = "pick_sce_intr")
    private String pickSceIntr;

    public XwPickScenic(){

    }

    public XwPickScenic(String sceEncryptid, String userEncryptid, String pickSceType, String sectypeEncryptid, String pickSceCompanyname, String pickSceCity, String pickSceAddress, String pickSceGrade, Date pickSceTime, String pickScePhoto, String pickSceIntr) {
        this.sceEncryptid = sceEncryptid;
        this.userEncryptid = userEncryptid;
        this.pickSceType = pickSceType;
        this.sectypeEncryptid = sectypeEncryptid;
        this.pickSceCompanyname = pickSceCompanyname;
        this.pickSceCity = pickSceCity;
        this.pickSceAddress = pickSceAddress;
        this.pickSceGrade = pickSceGrade;
        this.pickSceTime = pickSceTime;
        this.pickScePhoto = pickScePhoto;
        this.pickSceIntr = pickSceIntr;
    }

    /**
     * 获取挑选景区id
     *
     * @return pick_sce_id - 挑选景区id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getPickSceId() {
        return pickSceId;
    }

    /**
     * 设置挑选景区id
     *
     * @param pickSceId 挑选景区id
     */
    public void setPickSceId(Integer pickSceId) {
        this.pickSceId = pickSceId;
    }

    /**
     * 获取景区加密id
     *
     * @return sce_encryptId - 景区加密id
     */
    public String getSceEncryptid() {
        return sceEncryptid;
    }

    /**
     * 设置景区加密id
     *
     * @param sceEncryptid 景区加密id
     */
    public void setSceEncryptid(String sceEncryptid) {
        this.sceEncryptid = sceEncryptid;
    }

    /**
     * 获取用户加密id
     *
     * @return user_encryptId - 用户加密id
     */
    public String getUserEncryptid() {
        return userEncryptid;
    }

    /**
     * 设置用户加密id
     *
     * @param userEncryptid 用户加密id
     */
    public void setUserEncryptid(String userEncryptid) {
        this.userEncryptid = userEncryptid;
    }

    /**
     * 获取景区类型（游山、玩水……）只能是一个类型
     *
     * @return pick_sce_type - 景区类型（游山、玩水……）只能是一个类型
     */
    public String getPickSceType() {
        return pickSceType;
    }

    /**
     * 设置景区类型（游山、玩水……）只能是一个类型
     *
     * @param pickSceType 景区类型（游山、玩水……）只能是一个类型
     */
    public void setPickSceType(String pickSceType) {
        this.pickSceType = pickSceType;
    }

    /**
     * 获取景区类型加密id（可多个id，以，逗号进行分隔）
     *
     * @return secType_encryptId - 景区类型加密id（可多个id，以，逗号进行分隔）
     */
    public String getSectypeEncryptid() {
        return sectypeEncryptid;
    }

    /**
     * 设置景区类型加密id（可多个id，以，逗号进行分隔）
     *
     * @param sectypeEncryptid 景区类型加密id（可多个id，以，逗号进行分隔）
     */
    public void setSectypeEncryptid(String sectypeEncryptid) {
        this.sectypeEncryptid = sectypeEncryptid;
    }

    /**
     * 获取 企业名称
     *
     * @return pick_sce_companyName -  企业名称
     */
    public String getPickSceCompanyname() {
        return pickSceCompanyname;
    }

    /**
     * 设置 企业名称
     *
     * @param pickSceCompanyname  企业名称
     */
    public void setPickSceCompanyname(String pickSceCompanyname) {
        this.pickSceCompanyname = pickSceCompanyname;
    }

    /**
     * 获取所属城市
     *
     * @return pick_sce_city - 所属城市
     */
    public String getPickSceCity() {
        return pickSceCity;
    }

    /**
     * 设置所属城市
     *
     * @param pickSceCity 所属城市
     */
    public void setPickSceCity(String pickSceCity) {
        this.pickSceCity = pickSceCity;
    }

    /**
     * 获取详细地址（住所）
     *
     * @return pick_sce_address - 详细地址（住所）
     */
    public String getPickSceAddress() {
        return pickSceAddress;
    }

    /**
     * 设置详细地址（住所）
     *
     * @param pickSceAddress 详细地址（住所）
     */
    public void setPickSceAddress(String pickSceAddress) {
        this.pickSceAddress = pickSceAddress;
    }

    /**
     * 获取景区等级(A，2A)
     *
     * @return pick_sce_grade - 景区等级(A，2A)
     */
    public String getPickSceGrade() {
        return pickSceGrade;
    }

    /**
     * 设置景区等级(A，2A)
     *
     * @param pickSceGrade 景区等级(A，2A)
     */
    public void setPickSceGrade(String pickSceGrade) {
        this.pickSceGrade = pickSceGrade;
    }

    /**
     * 获取定制时间
     *
     * @return pick_sce_time - 定制时间
     */
    public Date getPickSceTime() {
        return pickSceTime;
    }

    /**
     * 设置定制时间
     *
     * @param pickSceTime 定制时间
     */
    public void setPickSceTime(Date pickSceTime) {
        this.pickSceTime = pickSceTime;
    }

    /**
     * 获取商铺宣传图
     *
     * @return pick_sce_photo - 商铺宣传图
     */
    public String getPickScePhoto() {
        return pickScePhoto;
    }

    /**
     * 设置商铺宣传图
     *
     * @param pickScePhoto 商铺宣传图
     */
    public void setPickScePhoto(String pickScePhoto) {
        this.pickScePhoto = pickScePhoto;
    }

    /**
     * 获取商铺介绍
     *
     * @return pick_sce_intr - 商铺介绍
     */
    public String getPickSceIntr() {
        return pickSceIntr;
    }

    /**
     * 设置商铺介绍
     *
     * @param pickSceIntr 商铺介绍
     */
    public void setPickSceIntr(String pickSceIntr) {
        this.pickSceIntr = pickSceIntr;
    }

    @Override
    public String toString() {
        return "XwPickScenic{" +
                "pickSceId=" + pickSceId +
                ", sceEncryptid='" + sceEncryptid + '\'' +
                ", userEncryptid='" + userEncryptid + '\'' +
                ", pickSceType='" + pickSceType + '\'' +
                ", sectypeEncryptid='" + sectypeEncryptid + '\'' +
                ", pickSceCompanyname='" + pickSceCompanyname + '\'' +
                ", pickSceCity='" + pickSceCity + '\'' +
                ", pickSceAddress='" + pickSceAddress + '\'' +
                ", pickSceGrade='" + pickSceGrade + '\'' +
                ", pickSceTime=" + pickSceTime +
                ", pickScePhoto='" + pickScePhoto + '\'' +
                ", pickSceIntr='" + pickSceIntr + '\'' +
                '}';
    }
}